package com.github.kotvertolet.youtubejextractor.models.newModels;

import com.google.gson.annotations.SerializedName;
import ohos.utils.Parcel;
import ohos.utils.Sequenceable;

import java.io.Serializable;

/**
 * 类功能描述(类上)
 *
 * @author AnBetter
 * @since 2021-04-15
 */
public class RunsItem implements Sequenceable, Serializable {
    @SerializedName("text")
    private String text;

    public static final Sequenceable.Producer<RunsItem> CREATOR = new Producer<RunsItem>() {
        @Override
        public RunsItem createFromParcel(Parcel parcel) {
            // Initialize an instance first, then do customized unmarshlling.
            RunsItem runsItem = new RunsItem();
            runsItem.unmarshalling(parcel);
            return runsItem;
        }
    };

    @Override
    public boolean marshalling(Parcel parcel) {
        parcel.writeString(this.text);
        return true;
    }

    @Override
    public boolean unmarshalling(Parcel parcel) {
        this.text=parcel.readString();
        return true;
    }

    @Override
    public String toString() {
        return "RunsItem{" +
                "text = '" + text + '\'' +
                "}";
    }
}
